//入口文件
import Vue from 'vue'

//导入路由的包
import VueRouter from 'vue-router'
import router from './router.js'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

import './lib/mui/dist/css/mui.css'
import './lib/mui/dist/css/icons-extra.css'

import axios from 'axios'
import VueAxios from 'vue-axios'

import app from './App.vue'


Vue.use(MintUI)
Vue.use(VueRouter)

axios.defaults.baseURL="http://localhost:2080"   //配置axios 的全局默认域名
Vue.use(VueAxios, axios)

Vue.config.devtools = true; //打开vue devtools 工具

//定义全局过滤器
Vue.filter('dataFormt',function(dataStr){
	var timestamp=Date.parse(dataStr)  //转为纯数字的时间戳
   return  new Date(parseInt(timestamp)).toLocaleString().replace(/年|月/g,"-").replace(/日/g," ");      
      
})

var vm = new Vue({
	el:'#app',
	render:c => c(app),
	router
})
